package service.interf.security;

import service.interf.IBaseDataService;
import dao.pojo.User;

/**
 * Title:IUser Description:用户相关
 * 
 * @author yanglei
 * @since 2012-02-28
 * @version 1.0
 */
public interface IUser extends IBaseDataService {
	/**
	 * Title：updUserPwd Description： 修改用户密码
	 * 
	 * @param userId
	 *            用户编号
	 * @param oldPwd
	 *            旧密码
	 * @param newPwd
	 *            旧密码
	 * @return 1
	 * @throws Exception
	 */
	public String updUserPwd(Long userId, String oldPwd, String newPwd)
			throws Exception;

	/**
	 * 重设管理密码
	 * 
	 * @param User
	 *            model
	 * @return
	 */
	public String resetPassword(User model) throws Exception;

	/**
	 * 批量使能true
	 * 
	 * @param ids
	 * @return
	 * @throws ClassNotFoundException
	 * @throws RuntimeException
	 */
	public Boolean useUnableByIds(String ids) throws ClassNotFoundException,
			RuntimeException;

	/**
	 * 批量使能false
	 * 
	 * @param ids
	 * @return
	 * @throws ClassNotFoundException
	 * @throws RuntimeException
	 */
	public Boolean useableByIds(String ids) throws ClassNotFoundException,
			RuntimeException;
}
